package cn.yx.common.core.enums.date;

/**
 * <p>时间差枚举类</p>
 *
 * @author Wgssmart
 */
public enum DatePassEnum {

    /**
     * 过去时间
     */
    SECONDS_PASS("秒前", "cn.yx.common.core.beforeSeconds"),
    MINUTES_PASS("分钟前", "cn.yx.common.core.beforeMinutes"),
    HOURS_PASS("小时前", "cn.yx.common.core.beforeHours"),
    YESTERDAY("昨天", "cn.yx.common.core.yesterday"),
    DAYS_PASS("天前", "cn.yx.common.core.beforeDays");

    private final String value;
    private final String i18nValue;

    DatePassEnum(String value, String i18nValue) {
        this.value = value;
        this.i18nValue = i18nValue;
    }

    public String getValue() {
        return value;
    }

    public String getI18nValue() {
        return i18nValue;
    }
}
